package com.google.gwt.sample.contacts.server;

import com.google.gwt.sample.contacts.client.action.AddContactAction;
import com.google.gwt.sample.contacts.client.action.AddContactResponse;

import com.guit.client.command.action.CommandException;

public class AddContactHandler extends AbstractHandler<AddContactAction, AddContactResponse> {

    @Override
    public AddContactResponse handle(AddContactAction action) throws CommandException {
        return new AddContactResponse(dataUtil.addContact(action.getContact()));
    }
}
